<?php
include("admin/cls/cls_user.php");
$user_id=$_POST["user_id"];
$name=$_POST["name"];
$last_name=$_POST["last_name"];
$email=$_POST["email"];
$mobil=$_POST["mobil"];

$usuario = new cls_user ();
if( $usuario->userUpdate($user_id,$name,$last_name,$email,$mobil) ) {
echo"
<script>
document.write(window.location='user_data.php');
</script>";
}
else {
echo "Error, no ha introducido todos los datos";

}
?>